﻿#region Usings

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace DbConvertor.Dao.Entities
{
    [DisplayColumn("Id")]
    public class RelationRu
    {
        #region Primitive Properties

        [Key]
        public long Id { get; set; }

        [Required]
        public short SequenceNumber { get; set; }

        [Required]
        public int Distance { get; set; }

        [Required]
        public int Serial { get; set; }

        #endregion

        #region Navigation Properties

        [Required]
        public virtual Relation Relation { get; set; }

        [Required]
        public virtual Ru Ru { get; set; }

        #endregion
    }
}